package java51_20;

import java.util.*;

public class FatherDay {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		Calendar date = Calendar.getInstance();
		System.out.println("请输入要查询的年份");
		int year = sc.nextInt();
		date.set(year, 5, 1);

		while (true) {
			if (date.get(Calendar.DAY_OF_WEEK) == 1) {
				break;
			}
			date.add(Calendar.DAY_OF_MONTH, 1);
		}

		date.add(Calendar.DAY_OF_MONTH, 14);

		Date d = date.getTime();
		System.out.println("父情节是" + d);

	}

}
